package com.oocl.oopdemo.mycollection;

public class MyException extends Exception {

	/**
	 * 自定义异常
	 */
	private static final long serialVersionUID = 1L;

	public MyException(){
		
	}
	public MyException(String errMessage){
		super(errMessage);//调用父类的super
	}
	
	public static void main(String[] args) throws MyException{
		throw new MyException("hello");
	}
}
